#include "StdAfx.h"
#include "TitleShadowUI.h"

CTitleShadowUI::CTitleShadowUI(void)
{
}

CTitleShadowUI::~CTitleShadowUI(void)
{
}

LPCTSTR CTitleShadowUI::GetClass() const
{
	return _T("TitleShadowUI");
}

SIZE CTitleShadowUI::EstimateSize(SIZE /*szAvailable*/)
{
	return CStdSize(0, 3);
}

void CTitleShadowUI::DoPaint(HDC hDC, const RECT& /*rcPaint*/)
{
	COLORREF clrBack1 = m_pManager->GetThemeColor(UICOLOR_TITLE_BACKGROUND);
	COLORREF clrBack2 = m_pManager->GetThemeColor(UICOLOR_DIALOG_BACKGROUND);
	RECT rcTop = { m_rcItem.left, m_rcItem.top, m_rcItem.right, m_rcItem.top + 4 };
	CBlueRenderEngineUI::DoPaintGradient(hDC, m_pManager, rcTop, clrBack1, clrBack2, true, 4);
}
